package org.dromara.ai.domain.bo;

import org.dromara.ai.domain.AiWork;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

/**
 * 作品业务对象 ai_work
 *
 * @author Tang
 * @date 2024-12-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AiWork.class, reverseConvertGenerate = false)
public class AiWorkBo extends BaseEntity {

    /**
     * 作品ID
     */
    @NotNull(message = "作品ID不能为空", groups = { EditGroup.class })
    private Long workId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 使用人数
     */
    private Long userNumber;

    /**
     * 作品标题
     */
    @NotBlank(message = "作品标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 图片地址
     */
    @NotNull(message = "图片地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long image;

    /**
     * 点赞数
     */
    private Long likeNumber;

    /**
     * 收藏数
     */
    private Long collectNumber;

    /**
     * 对话次数
     */
    private Long chatNumber;

    /**
     * 作品的内容
     */
    @NotBlank(message = "作品的内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 作品状态（0正常 1停用）
     */
    private String status;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
